package cn.pugle.spring.dao;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * Created by tzp on 6/8/16.<br>
 */
public class DaoMybatisTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("mybatis-context.xml");
        DaoMybatisTestService ser = context.getBean(DaoMybatisTestService.class);
        List<Integer> bookIds = ser.getBookIds();
        System.out.println(bookIds.size());
    }
}
